package com.linzm.structuraltype.decorator05;

import com.linzm.structuraltype.decorator05.shape.Shape;

/**
 * @Author zimingl
 * @Date 2023/4/16 1:28
 * @Description: RedShapeDecorator
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("Border Color: Red");
    }
}
